@extends('home.service.common')
@section('content')
<section class="pull-right">
	<input name="cid" type="hidden" value="{{$c->id}}">
	<input name="pid" type="hidden" value="{{$c->pid}}">
	<div class="quesaddress">常见问题>{{$c->partname}}>{{$c->catename}}</div>
	<div class="questype">{{$c->catename}}</div>
	<div class="queslist" >
				@foreach($qsn as $k => $v)
				@if($v->cid == $c->id)
				<div class="question"><a href="/home/service/qsn?id={{$v->id}}&cid={{$v->cid}}&pid={{$v->pid}}">{{$v->qtitle}}</a></div>
				@endif
				@endforeach
				<!--paging-->
		<div class="paginate"><ul id="js_paginate"></ul></div>
		<script>
            generatePaginate.apply(
                null,
                ["js_paginate","\/home\/commonques?page=#[page]&cid=&pid=",1,"2",12,5]                ); 
        </script>
        <!--paging end-->
    </div>
    <script type="text/javascript">
    
	//导航选中变色
	var v=""
	$(".header nav a[class=index]").addClass("orange").parent().siblings().find("a").removeClass("orange");

  var cid = $('input[name = cid]').val();
  var pid = $('input[name = pid]').val();
  alert(cid);

  $("aside li[id="pid"].ardown").removeClass("ardown").addClass("artop").addClass("slip").next(".list").css("display","block");
	$("aside .list a[id="cid"]").addClass("green");
</script> 
</section>
@endsection